<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css"></style>
<link href="../lib/styles.css" rel="stylesheet" type="text/css">
<link href="../lib/tbl_css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style25 {color: #FFFFFF}
-->
</style>
</head>
</html>
<html>
<head>
<script type="text/JavaScript">
<!--




function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
</head>

<body>
<TABLE width=100% border=0 align="center" cellPadding=0 cellSpacing=0>
        <TBODY>
        <TR vAlign=top>
          <TD style="BACKGROUND: url(../gambar/gri_sus.gif) repeat-x" height=50 
          width=100% colSpan=2><table width="100%" height="15" border="0">
            <tr>
              <td height="35" background="../gambar/index_07.jpg"><H6 class=title title="Detail Karyawan">Detail Gap Analisis </H6></td>
            </tr>
          </table></TD>
        </TR>
        <TR>
          <TD width=788 colSpan=3>
            <TABLE border=0 cellSpacing=0 cellPadding=0 width=100%>
              <TBODY>
              <TR>
                <TD><IMG border=0 alt=space 
                  src="../gambar/spacer.gif" 
                  width=1 height=1></TD></TR>
              <TR>
                <TD 
                style="BACKGROUND: url(../images/shadow_sub_verde.gif) #f4f4f4 repeat-x" 
                width=788 colSpan=2>
                  <TABLE border=0 cellSpacing=0 cellPadding=0 width=788>
                    <TBODY>
                    <TR>
                      <TD width="36" rowspan="2" valign="top">&nbsp;&nbsp;<img src="../gambar/001_21.png" width="24" height="24"><IMG alt=space 
                        src="../gambar/spacer.gif" 
                        width=1 height=10></TD>
                      <TD width="752" valign="top">
					  <? if($level=="admin"){
	       echo"<a href='?act=gap_analisis'><span class='linkuri_bottom2'>Kembali</span></a>"; }	
		   elseif($level=="karyawan"){
		   echo"<a href='?act=gap_analisis_level'><span class='linkuri_bottom2'>Kembali</span></a>"; }
		 ?>
					  </TD>
                    </TR>
                    <TR>
                      <TD>&nbsp;</TD>
                    </TR></TBODY></TABLE></TD></TR>
              <TR>
            <TD><IMG border=0 alt=space 
                  src="../gambar/spacer.gif" 
                  width=1 height=5></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><a href="index.php?act=in_matkul"></a></h2></td>
      </tr>
      <tr>
        <td>
		<table width="95%" border="0" align="center" bgcolor="#F4F4F4">
          <? include"../koneksi/koneksi.php";
$tampil=mysql_query("select * from karyawan where nik='$nik'");
$hs=mysql_fetch_array($tampil);
{ ?>
		  <tr>
            <td width="16%" rowspan="3"><div align="center"><? echo"<img src='../upload_photo/$hs[photo_karyawan]' width='90' height='70' border='1'>"; ?></div></td>
            <td width="11%">Nik</td>
            <td width="1%">:</td>
            <td width="18%"><input type="hidden" name="nik" maxlength="7" size="20" value="<? echo"$hs[nik]"; ?>" /><? echo"$hs[nik]"; ?></td>
			
			<? include"../koneksi/koneksi.php";
$tampil=mysql_query("select * from divisi d, bagian b, seksi s where
					d.kd_divisi=b.kd_divisi and b.kd_bagian=s.kd_bagian and s.kd_seksi='$hs[kd_seksi]'");
$hs2=mysql_fetch_array($tampil);
{
$kd_kelompok=$hs2[kd_kelompok];
$divisi=$hs2[nm_divisi];
$bagian=$hs2[nm_bagian];
$seksi=$hs2[nm_seksi];
}
?>
			
			
            <td width="14%">Divisi</td>
            <td width="1%">:</td>
            <td width="39%"><div align="left"><? echo"$divisi"; ?></div></td>
          </tr>
          <tr>
            <td>Nama</td>
            <td>:</td>
            <td><? echo"$hs[nm_karyawan]"; ?></td>
            <td>Bagian</td>
            <td>:</td>
            <td><div align="left"><? echo"$bagian"; ?></div></td>
          </tr>
          <tr>
            <td>Status</td>
            <td>:</td>
            <td><? echo"$hs[status]"; ?></td>
            <td>Seksi</td>
            <td>:</td>
            <td><div align="left"><? echo"$seksi"; ?></div></td>
          </tr>
        </table></td>
      </tr>
	  <? } ?>
    </table> 
	<br />
	   <table width="95%" border="0" align="center" cellpadding="2" cellspacing="1">
  <tr>
    <td class="texttitle12">Training Yang  di ikuti </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
<?
$lihat=mysql_query("select * from kelompok k, jabatan j, pendidikan p, seksi s, jobdesc jb
					where k.kd_jabatan=j.kd_jabatan and k.kd_pendidikan=p.kd_pendidikan and jb.kd_kelompok=k.kd_kelompok and
					s.kd_seksi=k.kd_seksi and s.kd_seksi='$kd_seksi'");
$hs=mysql_fetch_array($lihat);
{
$kd_seksi=$hs[kd_seksi];
$kd_kelompok=$hs[kd_kelompok];
$nm_kelompok=$hs[nm_kelompok];
$kd_jobdesc=$hs[kd_jobdesc];
$nm_jobdesc=$hs[nm_jobdesc];
}?>  
    <td>Kode Kelompok </td>
    <td>:</td>
    <td><? echo"$kd_kelompok"; ?></td>
  </tr>
  <tr>
    <td>Kelompok</td>
    <td>:</td>
    <td><? echo"$nm_kelompok"; ?></td>
  </tr>
  <tr>
  <? include"../koneksi/koneksi.php";
$tampil=mysql_query("select * from karyawan where nik='$nik'");
$hs=mysql_fetch_array($tampil);
{ ?>
    <td width="25%"><div align="left">Jobdesc</div></td>
    <td width="2%">:</td>
    <td width="73%"><? echo"$nm_jobdesc"; ?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3" class="texttitle02a"><div align="center" class="texttitle12A">Daftar Training Kualifikasi </div></td>
    </tr>
</table>
<center>
</center>  </td>
  </tr>
  <tr>
    <td><table width="98%" border="1" align="center" style="border-collapse: collapse;" bordercolor="#cccccc">
  <tr bgcolor="#660066" class="FOOTWARNA">
    <td width="3%" id="tdUp"><div align="center" class="style28 style25">No</div></td>
    <td width="22%" id="tdUp"><div align="center" class="style28 style25">Jobdesc Kualifikasi </div></td>
    <td width="16%" id="tdUp"><div align="center" class="style28 style25">Materi</div></td>
    <td width="34%" id="tdUp"><span class="style25">Isi Materi </span></td>
    <td width="13%" id="tdUp"><span class="style25">Terlaksana</span></td>
    <td width="12%" id="tdUp"><span class="style25">Belum</span></td>
  </tr>
  <tr>
<? include"../koneksi/koneksi.php";
 $limit=15;
 if(empty($halaman)){
 $offset=0;
 $halaman=1;}
 else{
 $offset=($halaman-1) * $limit; }
 
$lihat=mysql_query("select * from jobdesc j, materi m, jobdesc_kualifikasi jk, kelompok k, bagian b, seksi s
					where jk.kd_materi=m.kd_materi and jk.kd_jobdesc=j.kd_jobdesc and
					b.kd_bagian=s.kd_bagian and k.kd_kelompok=j.kd_kelompok and k.kd_seksi=s.kd_seksi and jk.kd_jobdesc='$kd_jobdesc' limit $offset,$limit");
 while($hs=mysql_fetch_array($lihat))
 {
 	if($j==0){
	echo"<tr id='tampil'>";
	$j++;}
	else{
	echo"<tr id='tampil2'>";
	$j--;}
	$no++;
?> 

    <td><div align="center"><? echo"$no"; ?></div></td>
    <td><div align="center">
      <div align="left"><? echo"$hs[nm_kualifikasi]"; ?></div></td>
    <td><div align="left"><? echo"$hs[nm_materi]"; ?></div></td>
    <td><div align="left"><? echo"$hs[isi_materi]"; ?></div></td>
    <td><div align="center"><? include"../koneksi/koneksi.php";
	  $cek=mysql_query("select count(*) as hasil from karyawan k, training t, detail_training dt
	  					where k.nik=dt.nik and t.no_training=dt.no_training and t.nodet_jobdesc='$hs[nodet_jobdesc]'");
$cek1=mysql_fetch_row($cek);
	if($cek1[0]>'0')
	{
	//$aktual='Belum Ada';
	echo"<img src='../gambar/checked.gif' alt='terlaksana' width='14' height='14'>";
	}
	?></div></td>
    <td><div align="center"><? include"../koneksi/koneksi.php";
	  $cek=mysql_query("select count(*) as hasil from karyawan k, training t, detail_training dt
	  					where k.nik=dt.nik and t.no_training=dt.no_training and t.nodet_jobdesc='$hs[nodet_jobdesc]'");
$cek1=mysql_fetch_row($cek);
	if($cek1[0]=='0')
	{
	echo"<img src='../gambar/unchecked.gif' alt='Belum terlaksana' width='14' height='14'>";
	}
	?>
    </div></td>
  </tr>
  <? } ?>
</table>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="style12">
  <tr>
    <td><?
$lihat2=mysql_query("select * from jobdesc j, materi m, jobdesc_kualifikasi jk, kelompok k, bagian b, seksi s
					where jk.kd_materi=m.kd_materi and jk.kd_jobdesc=j.kd_jobdesc and
					b.kd_bagian=s.kd_bagian and k.kd_kelompok=j.kd_kelompok and k.kd_seksi=s.kd_seksi and jk.kd_jobdesc='$kd_jobdesc'");
$jumbaris=mysql_num_rows($lihat2);
$total_halaman=ceil($jumbaris/$limit);

if(!empty($halaman) && $halaman!=1)
	{
	$previous=$halaman-1;
	echo"<a href=?act=pengalaman&halaman=$previous>Previous</a> -";
	}
	else{
	echo"Previous -";
	}

for($i=1;$i<=$total_halaman;$i++)
if($i!=$halaman)
	{
	echo"<a href=?act=pengalaman&halaman=$i>$i</a> -";
	}
	else{
	echo"$i -"; }

if($halaman<$total_halaman)
	{
	$next=$halaman+1;
	echo"<a href=?act=pengalaman&halaman=$next>Next</a>";
	echo"<center>Jumlah Data : $jumbaris</center>"; }
	else{
	echo"Next";
	echo"<center>Jumlah Data : $jumbaris</center>"; }
?>    </td>
  </tr>
</table></td>
  </tr>
  <? } ?>
</table>
</body>
</html>

